<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<link type="text/css" rel="stylesheet" th:href="@{/static/layui/css/layui.css}">

<script type="text/javascript" th:src="@{/static/layui/layui.all.js}"></script>

<h1 style="color: blue;" th:text="'hello, ' + ${name} + '!'" ></h1>
<button class="layui-btn">css样式引入成功</button>

<script>
    var layer = layui.layer;
    layer.open({
        title:"温馨提示",
        content:"js 静态资源引入成功！"
    })
</script>
</body>
</html>